%% humans
% listMeasName = {
%     '191108_Bob_HumanBlood1'
%     '191113_Bob_HumanBlood2'
%     '201118_DoreenBob_HumanBlood3'
%     '201125_DoreenBob_HumanBlood4'
%     '201126_DoreenBob_HumanBlood5'
%     };
% 
% areaGateRange = [20 50];

%% bats 1. round
% listMeasName = {
%     '191015_GeraldDoreenBob_Bats1'
%     '191016_GeraldDoreenBob_Bats2'
%     '191030_GeraldDoreenBob_Bats3'
%     '201008_GeraldDoreenBob_Bats4'
%     '201021_GeraldDoreenBob_Bats5'
%     '201028_GeraldDoreenBob_Bats6'
%     };
% 
% areaGateRange = [10 30];

%% bats 2. round
% listMeasName = {
%     '210408_FaruqBob_Bats21'
%     '210518_Faruq_1Wildbat'
%     '210520_Faruq_1Wildbat'
%     '210527_Faruq_1Wildbat'
%     '210809_Faruq_2Wildbats'
%     '210811_Faruq_2_Wildbats'
%     '210819_Faruq_2Wildbats'
%     '210825_Faruq_1Wildbat'
%     '210916_Faruq_1Wildbat'
%     '210923_Faruq_2Wildbats'
%     '210929_Faruq_2Wildbats'
%     '211012_Faruq_2wildbats'
%     '211019_Faruq_2Wildbats'
%     '211026_Faruq_2Wildbats'
%     '211029_Faruq_2wildbats'
%     };
% 
% areaGateRange = [10 30];

%% FLI bats
listMeasName = {
    '210812_Faruq_2_FLIbats'
    '210902_Faruq_2FLIbats'
    '210917_Faruq_2FLIBats'
    '210924_Faruq_2FLIBats'
    '211001_Faruq_2FLIbats'
    '211007_Faruq_2FLIBats'
    };

areaGateRange = [10 30];

%% general parameters
rSqrCutoff = 0.6;
velocityGateRange = [2 5]; % cm/s
tau1GateRange = [0 11.4]; % ms
tau2GateRange = [0 11.4]; % ms
deltaDefoRange = [0 .5];


%% script: plot FT-fit parameters with and without gates
flagSaveFigs = 0;

for idxListMeasName = 1:length(listMeasName)
    measDir = ['..' filesep listMeasName{idxListMeasName}];
    fprintf('%s\n', measDir);
    
%     flagGate = 0;
%     plotScript_v3
%     PNGOverview2(measDir,'FTFit',flagGate);
%     
%     flagGate = 1;
%     plotScript_v3
%     PNGOverview2(measDir,'FTFit',flagGate);

    flagGate = 1;
    exportFTFitPara2tsv_v3
    
end